﻿@model IEnumerable<MilageMVC.Models.Mileage>


<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Distance)
        </th>
        <th>
@*            @Html.DisplayNameFor (model => model.VolumeAmount)*@
            Volume Amount
        </th>

        <th>
            @Html.DisplayNameFor(model => model.DateEntered)
        </th>
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Distance) @Html.DisplayFor(modelIt => item.DistanceType.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.VolumeAmount) @Html.DisplayFor(modelItem => item.VolumeUnits.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DateEntered)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.MileageID })
            </td>
        </tr>
    }

</table>
